function showUserInformation {
    param (
        [Parameter(Mandatory = $true, Position = 0)] [string]$Name,
        [Parameter(Mandatory = $true, Position = 1)] [int]$Age,
        [Parameter(Mandatory = $false, Position = 2)] [string]$City
    )
    Write-Host "User Name: $Name"
    Write-Host "User Age: $Age"
    write-Host "User City: $City"
}

showUserInformation -Name "Alice" -Age 30 -City "New York"
showUserInformation -Name "Bob" -Age 25
showUserInformation -Age 40 -City "Los Angeles"

